Platform Explorer / Nuxeo Platform 2023.16

Contribution org.nuxeo.ecm.core.trash.service.migrator--configuration

This contribution is part of XML component org.nuxeo.ecm.core.trash.service.migrator inside nuxeo-core-2023.16.12.jar /OSGI-INF/trash-migration.xml

Extension Point

Extension point configuration of component MigrationService.

Registration Order

0
The registration order represents the order in which this contribution was registered on its target extention point. This will impact the override/merge behaviour when it is implemented on the target service, and is useful for proper customization of existing contributions.
You can influence this order by adding "require" tags in the containing component declaration, to make sure it is resolved after another component (see "Resolution Order" on components).

Contributed Items

  • <migration id="trash-storage">
          <description label="migration.trash-storage">Migration of in the trash storage model</description>
          <class>org.nuxeo.ecm.core.trash.TrashedStateMigrator</class>
          <defaultState>property</defaultState>
          <state id="lifecycle">
            <description label="migration.trash-storage.lifecycle">Trashed state stored as deleted lifecycle state</description>
          </state>
          <state id="property">
            <description label="migration.trash-storage.property">Trashed state stored as system property</description>
          </state>
    
          <step fromState="lifecycle" id="lifecycle-to-property" toState="property">
            <description label="migration.trash-storage.lifecycle-to-property">Migrate trashed state from lifecycle to property</description>
          </step>
        </migration>

    Migrate trashed state from lifecycle to property

XML Source

<extension point="configuration" target="org.nuxeo.runtime.migration.MigrationService">

    <migration id="trash-storage">
      <description label="migration.trash-storage">Migration of in the trash storage model</description>
      <class>org.nuxeo.ecm.core.trash.TrashedStateMigrator</class>
      <defaultState>property</defaultState>
      <state id="lifecycle">
        <description label="migration.trash-storage.lifecycle">Trashed state stored as deleted lifecycle state</description>
      </state>
      <state id="property">
        <description label="migration.trash-storage.property">Trashed state stored as system property</description>
      </state>

      <step fromState="lifecycle" id="lifecycle-to-property" toState="property">
        <description label="migration.trash-storage.lifecycle-to-property">Migrate trashed state from lifecycle to property</description>
      </step>
    </migration>

  </extension>